package com.suixinsanren.design.command.demo02;

public class Light {

    private String name;
    private String location;

    public Light(String name, String location) {
        this.name = name;
        this.location = location;
    }

    public void open() {
        System.out.println(location + "的" + name + "已打开");
    }

    public void close() {
        System.out.println(location + "的" + name + "已关闭");
    }
}
